<?php

require_once 'PHPUnit/Autoload.php';

require_once './BankAccount.php';
class BankAccountTest extends PHPUnit_Framework_TestCase
{

	protected $ba;
	protected function setUp()
	{
		$this->ba = new BankAccount;
	}
	
	public function testBalanceIsInitiallyZero()
	{
		$this->assertEquals(0,$this->ba->getBalance());
	}
	
	public function testBalanceCannotBecomeNegative()
	{
		$this->ba->withdrawMoney(1);
		$this->assertEquals(0,$this->ba->getBalance());
		
	}
}
?>
